<template>
  {{
    t("el.pagination.total", {
      total,
    })
  }}
</template>
<script lang="ts">
import { useLocaleInject } from "@/hooks";
import { defineComponent, ExtractPropTypes } from "vue";

const paginationTotalProps = {
  total: {
    type: Number,
    default: 1000,
  },
};
export type PaginationTotalProps = ExtractPropTypes<
  typeof paginationTotalProps
>;

export default defineComponent({
  name: "ElPaginationTotal",
  props: paginationTotalProps,
  setup() {
    const { t } = useLocaleInject();
    return { t };
  },
});
</script>
